<!DOCTYPE html>
<html lang="zh-CN">
<meta charset="utf-8" />
<head>
<title>高速媒体环境管理 <?php echo $this->config->item('title');?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet"	href="<?php echo base_url()?>public/css/bootstrap.min.css">
<link rel="stylesheet" href="<?php echo base_url()?>public/css/style.css">
</head>
<body>
	<script src="<?php echo base_url()?>public/js/jquery-2.0.2.min.js"></script>
	<script src="<?php echo base_url()?>public/js/bootstrap.min.js"></script>
	<script src="<?php echo base_url()?>public/js/bootstrap-confirm.js"></script>
	<script src='<?php echo base_url()?>public/js/ssi_common.js'></script>
	<div role="navigation" class="navbar navbar-inverse navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<a class="navbar-brand">SSI后台管理系统</a>
			</div>
			<div class="collapse navbar-collapse navbar-right">
				<ul class="nav navbar-nav">
					<li><a href="<?php echo base_url()?>" class="navbar-link">首页</a></li>
					<li><a href="<?php echo base_url()."index.php/common_login_user_set"?>" class="navbar-link">超级管理员</a></li>
					<li><a href="<?php echo base_url()?>index.php/common_login_manage/logout" class="navbar-link">退出</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="container">
		<div class="row">
			<div class="col-xs-3">
				<?php echo $user_menu?>
			</div>
			<div class="col-sm-9">
				<br>
				<div class="panel panel-default">
					<div class="panel-heading">
						<p>
						<a href="<?php echo base_url()."index.php/media_env_highway_manage"?>">高速环境</a> > 
						<?php if($add_highway_env){?>
						<a href="<?php echo base_url()."index.php/media_env_highway_manage/highway_section?highway_id=".$highway_section_info['highway_id']?>"><?php echo $highway_section_info['highway_name']?></a> > <?php echo $highway_section_info['section_name']?>
							&nbsp;<a href="<?php echo base_url()."index.php/media_env_highway_manage/add_highway_point?section_id=".$highway_section_info['section_id']?>" class="btn btn-link pull-right">
							<span class="glyphicon glyphicon-plus"> </span><span> 添加 <b><?php echo $highway_section_info['section_name']?></b> 关卡点位</span> </a>
						</p>
						<?php }?>
					</div>
					<div class="panel-body">
					<?php if($query_highway_env){?>
						<table class="table table-hover">
							<thead>
								<tr>
									<td class="col-md-2"><b>关卡点位名称</b></td>
									<td class="col-md-3"><b>下高速后具体位置</b></td>
									<td class="col-md-2"><b>高速大牌</b></td>
									<td class="col-md-2"><b>操作</b></td>
								</tr>
							</thead>
							<tbody>
							<?php if ($highway_point_list!=null) {
									foreach ($highway_point_list as $highway_point){
								?>
								<tr>
									<td><?php echo $highway_point['point_name']?></td>
									<td><?php echo $highway_point['location']?></td>
									<td ><?php echo $highway_point['billboard_num']?>
									</td>
									<td >
										<a title="查看" href="<?php echo base_url()."index.php/media_env_highway_manage/query_highway_point?point_id=".$highway_point['point_id']?>" class="btn btn-link"><span class="glyphicon glyphicon-eye-open"></span></a>
										<?php if($update_highway_env){?>
										<a title="编辑" href="<?php echo base_url()."index.php/media_env_highway_manage/edit_highway_point?point_id=".$highway_point['point_id']?>" class="btn btn-link"><span class="glyphicon glyphicon-pencil"></span></a>
										<?php }?>
										<?php if($delete_highway_env){?>
										<a title="删除" rel="<?php echo base_url()."index.php/media_env_highway_manage/delete_highway_point?point_id=".$highway_point['point_id']?>" class="btn confirm btn-link"><span class="glyphicon glyphicon-trash"></span></a>
										<?php }?>
									</td>
								</tr>
								<?php }
								}?>
							</tbody>
						</table>
						<?php }?>
					</div>
				</div>
				<ul class="pagination pull-right">
				<?php echo $page_link?>
				</ul>
				
			</div>
		</div>
	</div>
	<script>
	$('.confirm[rel]').each(function() {
		$(this).confirm({
	  		'title' : '是否确认删除',
	  		'message' : '删除该路段同时会删除该路段下的所有站点,请确认是否继续?',
	 		'action' : $(this).attr('rel')
		});
	});
	</script>
	<div  class="back-to" id="toolBackTop">
	<a title="返回顶部" onclick="window.scrollTo(0,0);return false;" href="#top" class="back-top">
	返回顶部</a>
	<a title="返回底部" onclick="window.scrollTo(0,document.body.scrollHeight);return false;" href="#bottom" class="back-bottom">
	返回底部</a>
</div>
</body>
</html>
